import request from '@/config/axios'

/** 今日统计 Request VO */
export interface TradeTodayReqVO {
  mode?: Number
  query?: Number
  tenantIds?: EmptyArrayType
  times?: any
}

// 查询今日统计
export const getTradeTodayRebateSummary = (params: TradeTodayReqVO) => {
  return request.get({
    url: '/statistics/rebate/index/today',
    params
  })
}

/** 本月统计 Request VO */
export interface TradeMonthReqVO {
  mode?: Number
  query?: Number
  tenantIds?: EmptyArrayType
  times?: any
}

// 查询本月统计
export const getTradeMonthRebateSummary = (params: TradeMonthReqVO) => {
  return request.get({
    url: '/statistics/rebate/index/tomonth',
    params
  })
}
